export const request=(options)=>{
	return new Promise((resolve,reject)=>{
		uni.request({
			url:options.url,
			method::options.method||'GET',
			data:options.data||{},
			success: (res) => {
				resolve(res)
			},
			fail: (error) => {
				uni.showToast({
					title:'请求失败'
				})
				reject(error)
			}
		})
	})
}